<%inherit file="base.html"/>
<%def name="title()">Transactions</%def>

<div ex:role="exhibit-collection" ex:itemTypes="transaction"></div>
    <table>
        <tr>
            <td>
<div ex:role="view"
     ex:viewClass="Tabular"
     ex:showSummary="false"
     ex:columns=".label, .DTTRADE, .UNIQUEID.SECNAME, .tran, .units, .UNITPRICE, .TOTAL, .CURRENCY, .FEES, .TAXES, .mEMO"
     ex:columnLabels="id, date, asset, type, units, price, total, $, F, T, memo"
     ex:formats="date { mode: short }  number { decimal-digits: 2 } item { title: expression('?') }"
     ex:sortColumn="1"
     ex:sortAscending="false"
     ex:showToolbox="true">
    <table style="display: none;">
        <tr>
            <td><span ex:content=".label"></span></td>
            <td><span ex:content=".DTTRADE"></span></td>
            <td><a ex:href-content="concat('asset?UNIQUEID=',.UNIQUEID)"><span ex:content="if(exists(.SECNAME),min(.SECNAME),if(exists(.UNIQUEID),min(.UNIQUEID.SECNAME),''))"></span></a></td>
            <td><span ex:content=".tran"></span></td>
            <td style="text-align:right"><span ex:content=".units"></span></td>
            <td style="text-align:right"><span ex:content=".UNITPRICE"></span></td>
            <td style="text-align:right"><span ex:content=".TOTAL"></span></td>
            <td style="text-align:right"><span ex:content=".CURRENCY"></span></td>
            <td style="text-align:right"><span ex:content=".FEES"></span></td>
            <td style="text-align:right"><span ex:content=".TAXES"></span></td>
            <td><span ex:content=".mEMO"></span></td>
        </tr>
    </table>
</div>
             </td>
            <td width="25%">
                    <b>Search:</b>
                    <div ex:role="facet" ex:facetClass="TextSearch"></div>
                    <hr/>
<div ex:role="facet" ex:expression=".ACCTID" ex:facetLabel="Account"></div>
<div ex:role="facet" ex:expression=".tran" ex:facetLabel="Type"></div>
<div ex:role="facet" ex:expression=".DTTRADE" ex:facetLabel="Date"></div>
<div ex:role="facet" ex:expression=".UNIQUEID.SECNAME" ex:facetLabel="Asset"></div>
           </td>
        </tr>
    </table>
